package com.simple.project.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.simple.common.annotation.Excel;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 博客标签关联对象 b_blog_tag
 * 
 * @author simple
 * @date 2020-12-01
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("b_blog_tag")
public class BlogTag implements Serializable {

private static final long serialVersionUID=1L;


    /** 唯一Id */
    @TableId(value = "blog_tag_id")
    private Long blogTagId;

    /** 博客Id */
    @Excel(name = "博客Id")
    private Long blogId;

    /** 标签Id */
    @Excel(name = "标签Id")
    private Long tagId;

    /** 标签名称冗余字段 */
    @Excel(name = "标签名称冗余字段")
    private String tagName;

    /** 创建时间 */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /** 修改时间 */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /** 逻辑删除，0：未删除，1：已删除 */
    @Excel(name = "逻辑删除，0：未删除，1：已删除")
    private Integer isDeleted;
}
